package se.webbzon.oschi01.gzip;

import java.io.IOException;
import java.io.OutputStream;

public class GZIPOutputStream extends java.util.zip.GZIPOutputStream {

	public GZIPOutputStream(OutputStream out) throws IOException {
		super(out);
	}
	
	public GZIPOutputStream(OutputStream out, boolean syncFlush) throws IOException {
		super(out, syncFlush);
	}
	
	public GZIPOutputStream(OutputStream out, int size) throws IOException {
		super(out, size);
	}
	
	public GZIPOutputStream(OutputStream out, int size, boolean syncFlush) throws IOException {
		super(out, size, syncFlush);
	}

	@Override public void close() throws IOException {
		flush();
		super.close();
	}

	@Override public void flush() throws IOException {
		finish();
		super.flush();
	}

}
